
package de.uni.wuppertal.server.ui.support;

import java.io.File;

import javax.swing.filechooser.FileFilter;

/**
 * @author Martin Schröder
 * @author Patrik Nordsiek
 */
public class ConfigurationFileFilter extends FileFilter
{
	@Override
	public String getDescription()
	{
		return "Serverkonfiguration (*.cfg.xml)";
	}
	
	@Override
	public boolean accept(File file)
	{
		return file.isDirectory() || file.getName().toLowerCase().endsWith(".cfg.xml");
	}
}
